package com.hqj.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/uc")
public class UserController {

    @Value("${eureka.instance.hostname}")
    private String hostname;
    @Value("${server.port}")
    private String port;

    @RequestMapping("/test")
    public String sayRibbon(){
        return "我是服务提供者Oracle,我的端口号服务地址"+hostname+",端口号:"+port;
    }

}
